import 'cube.css/src/scss/neat.scss'
import 'static/font/iconfont.css'
import 'element-ui/lib/theme-default/index.css'
import './welcome.scss'
import '@/base/scss/animate.css'
import Vue from 'vue'
import ElementUI from 'element-ui'
import UnifyHeader from '@/components/header/header'
import UnifyFooter from '@/components/footer/footer'
import mixins from '@/mixins'

Vue.mixin(mixins)
Vue.use(ElementUI)

// eslint-disable-next-line no-new
new Vue({
  el: '#app',
  data: {
    bannerUrl: [
      'http://beta.artup.com/print/memory.html',
      'javascript:void(0)',
      'https://www.artup.com/2018jiashu/index.html',
      'https://www.artup.com/qianlijiangshan/qianlijiangshan.html',
      'https://www.artup.com/giftcard/'
    ]
  },
  components: {
    UnifyHeader,
    UnifyFooter
  },
  created: function () {
    this.checkWebpFeature('lossy', function (feature, isSupport) {
      if (isSupport) {
        require('./background-webp.scss')
      } else {
        require('./background-png.scss')
      }
    })
    document.body.style.cssText = 'opacity:1;'
  }
})

